<!-- 提示弹框-->
<template>
  <el-dialog
    :title="title"
    :visible.sync="dialogVisible"
    append-to-body
    width="30%"
  >
    <span>{{ text }}</span>
    <span slot="footer" class="dialog-footer">
      <el-button @click="close">关 闭</el-button>
    </span>
  </el-dialog>
</template>
<script>
export default {
  data() {
    return {
      dialogVisible: false,
      title: "提示",
      text: "",
    };
  },
  components: {},
  computed: {},
  methods: {
    open(title, text) {
      this.title = title;
      this.text = text;
      this.dialogVisible = true;
    },
    close() {
      this.dialogVisible = false;
      this.text = "";
    },
  },
};
</script>

<style></style>
